
package cn.bdqn.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.bdqn.dao.appversion.AppVersionDao;
import cn.bdqn.entity.AppVersion;
import cn.bdqn.service.AppVersionService;

@Service
@Transactional
public class AppVersionServiceImpl implements AppVersionService {
	
	@Autowired
	private AppVersionDao appVersionDao;

	@Override
	public List<AppVersion> findAllVersionByAppInfoId(Integer id) {
		return appVersionDao.findAllVersionByAppInfoId(id);
	}

	@Override
	public Integer save(AppVersion appVersion) {
		return appVersionDao.save(appVersion);
	}

	@Override
	public AppVersion findVersion(Integer id) {
		return appVersionDao.findVersion(id);
	}
}
